﻿// Partial Copyright (c) LogoUI Software Solutions LTD
// Author: Vladislav Spivak
// This source file is the part of LogoFX Framework http://logofx.codeplex.com
// See accompanying licences and credits.

//based on, but not limited to http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2010/03/09/mef-and-the-deploymentcatalog.aspx
#if SILVERLIGHT

using System;
using System.ComponentModel.Composition.Primitives;

namespace LogoFX.Composition
{
  public class CatalogItemLoadedEventArgs : EventArgs
  {
    public Exception Error { get; set; }
  }
  public class CatalogItemCachedEventArgs : EventArgs
  {
      private readonly ComposablePartCatalog _catalog;

      public CatalogItemCachedEventArgs(ComposablePartCatalog catalog)
      {
          _catalog = catalog;
      }

      public ComposablePartCatalog Catalog
      {
          get { return _catalog; }
      }
  }
}
#endif